﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DELVE_GAME.ViewStructure.GameActions
{
    class OpenProfileChoicesGameAction: GameAction
    {
        View view;
        int optionIndex;

        public OpenProfileChoicesGameAction(View targetView, int optIndex)
        {
            view = targetView;
            optionIndex = optIndex;
        }
        
        public override void doAction()
        {
            //expand profile choices rectangle
            view.setProfileOptionIndex(optionIndex);
            view.expandProfileChoices();
        }
    }
}
